import Vue from 'vue'
import App from './App'
import store from './store'

Vue.config.productionTip = false

App.mpType = 'app'
Vue.prototype.$store = store

// 1.引入组件
import juheAll from './components/juhe-all.vue'
import JuheText from './components/juhe-text.vue';
// 2.注册组件
Vue.component('juhe-all', juheAll)
Vue.component('juhe-text', JuheText)

import VueI18n from 'vue-i18n'

Vue.use(VueI18n)
Vue.config.productuinTip = false
const i18n = new VueI18n({
	locale: store.state.locale || 'zh-CN',
	messages: {
		'en-US': {
			message: {
				UIName: 'JuheUI',
			}
		},
		'zh-CN': {
			message: {
				UIName: '聚合UI',
			}
		}
	}
})

Vue.prototype._i18n = i18n
App.mpType = 'app'


const app = new Vue({
	i18n,
	store,
	...App
})
app.$mount()
